package com.zmn.oms.common.dio.quotation3;

import com.zmn.common.constant.GlobalConsts;
import com.zmn.oms.common.dto.OmsBaseOperator;
import com.zmn.oms.common.dto.OmsOperator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author sunlife
 * @date:2021/11/25 5:04 下午
 * description:
 */
@Data
@ApiModel
public class CheckReportDIO  extends OmsOperator implements Serializable {
    private static final long serialVersionUID = -8142790881882543110L;

    /**
     * 检修项目
     */
    @ApiModelProperty("检修项目集合")
    List<OrderMaintainItemDIO> maintainItemList;

    /**
     * 故障部位
     */
    @NotEmpty(message = "故障部位集合不能为空")
    @ApiModelProperty("故障部位集合")
    List<Integer> faultIdList;

    /**
     * 维修方式
     */
    @NotEmpty(message = "维修方式不能为空")
    @ApiModelProperty("维修方式/服务项集合")
    List<Integer> itemList;

    /**
     * 记录日志用
     */
    private String faultNameStr;

    /**
     * 是否是修改
     */
    private Integer editStatus = GlobalConsts.NO;

}
